var login = {

    api_name : '/user',

  login(userInfo) {
    return request({
      url: this.api_name + '/login',
      method: 'post',
      data: userInfo
    })
  },

  logout() {
    return request({
      url: this.api_name + '/logout',
      method: 'get'
    })
  },
  // sendmail(mail) {
  //   return request({
  //     url: this.api_name + '/mialSend?mail='+mail,
  //     method: 'get'
  //   })
  // }
}
